using System;
using System.Collections.Generic;
using System.Text;
using Logic.Exceptions;
namespace Logic.Sequential
{
    public class Cell
    {
        private int genomeNumber;
        private int groupNumber;

        public Cell()
        {
            GenomeNumber = 0;
            GroupNumber = 0;
        }

        public Cell(int genomeNumber, int groupNumber)
        {
            GenomeNumber = genomeNumber;
            GroupNumber = groupNumber;
        }

        public int GenomeNumber
        {
            get
            {
                return this.genomeNumber;
            }
            set
            {
                try
                {
                    this.genomeNumber = value;
                }
                catch (NegativeNumberException e)
                {
                    Console.WriteLine("{0}", e.Message);
                }
            }
        }

        public int GroupNumber
        {
            get
            {
                return this.groupNumber;
            }
            set
            {
                try
                {
                    this.groupNumber = value;
                }
                catch (NegativeNumberException e)
                {
                    Console.WriteLine("{0}", e.Message);
                }
            }
        }
    }
}
